bitkeeper revision 1.1159.1.411 (41938f5atLOST7mvpvTjqYngsCYHOg)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 11 Nov 2004 16:12:10 +0000 (16:12 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Thu, 11 Nov 2004 16:12:10 +0000 (16:12 +0000)
Route physical IRQs to the processor which is running the domain requesting
the IRQ.

xen/arch/x86/irq.c

index 0e4f28693819d3d914ba0cf7fca611935cf0c3bd..fab2de6ad632f937e6630c577f2783c5696d4769 100644 (file)
@@ -280,7 +280,7 @@ int pirq_guest_bind(struct exec_domain *ed, int irq, int will_share)
         /* Attempt to bind the interrupt target to the correct CPU. */
         if ( desc->handler->set_affinity != NULL )
             desc->handler->set_affinity(
-                irq, apicid_to_phys_cpu_present(d->exec_domain[0]->processor));
+                irq, apicid_to_phys_cpu_present(ed->processor));
     }
     else if ( !will_share || !action->shareable )
     {